<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el"%>

<html:html xhtml="true">

<head>
<title><bean:message key="formpage.title" /></title>
<html:base />
<link rel="stylesheet" href="css/struts-training.css"
	charset="ISO-8859-1" type="text/css" />
</head>
<script>
function showalert()
{
	alert("Are you sure you dont want to receive email alerts");
}

/**
 * Author   : TUYEN-DM
 * Date     : 2009/05/04 
 * Function : submit action according to the button clicked
 */
function fncSubmitAction(val1,val2,actionName){	
	document.CourseForm.submitAction.value = val1;
	document.CourseForm.action = actionName;
	document.CourseForm.submit();
}
</script>
<body background="images/blueAndWhiteBackground.gif">
<div align="course"><br />
<br />
<br />
<h2><bean:message key="formpage.title" /></h2>

<html:errors /> <html:form action="/submitCourseForm"
	focus="courseName" method="GET">

	<table width="60%">
		<tr>
			<td align="right"><bean:message key="course.coursename" />:</td>
			<td align="left"><html:text property="courseName" size="16"
				maxlength="25" /></td>
		</tr>

		<tr>
			<td align="right"><bean:message key="course.content" />:</td>
			<td align="left"><html:text property="content" size="16"
				maxlength="25" /></td>
		</tr>

		<tr>
			<td align="right"><bean:message key="course.openDate" />:</td>
			<td align="left"><html:text styleClass="mytxtbox"
				property="openDate" size="16" maxlength="30" /></td>
		</tr>

		<tr>
			<td align="right"><bean:message key="course.closeDate" />:</td>
			<td align="left"><html:text styleClass="mytxtbox"
				property="closeDate" size="16" maxlength="30" /></td>
		</tr>

		<tr>
			<td align="right"><bean:message key="course.classes" />:</td>
			<td align="left"><html:text property="classes" size="16"
				maxlength="16" /></td>
		</tr>

		<tr>
			<td align="right"><bean:message key="course.fee" />:</td>
			<td align="left"><html:text property="fee" size="16"
				maxlength="16" /></td>
		</tr>

		<tr>
			<td align="right"><bean:message key="course.qualification" />:</td>
			<td align="left"><html:text property="qualification" size="16"
				maxlength="16" /></td>
		</tr>
		
		<tr>
			<td align="right"><bean:message key="course.recruitTime" />:</td>
			<td align="left"><html:text property="recruitTime" size="16"
				maxlength="16" /></td>
		</tr>		

		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>

	</table>

	<html:hidden property="courseID" />

	<table width="60%">
		<tr>
			<td align="right"><html:image property="save"
				srcKey="image.save" altKey="image.save.alttext"
				bundle="bundle.image"
				onclick="javascript:fncSubmitAction('save','','submitCourseForm.do');" /></td>
			<td align="left"><html:image property="cancel"
				srcKey="image.cancel" altKey="image.cancel.alttext"
				bundle="bundle.image"
				onclick="javascript:fncSubmitAction('cancel','','submitCourseForm.do');" /></td>
		</tr>
	</table>
	<input type="hidden" id="submitAction" name="submitAction" value="" />
</html:form></div>
</body>

</html:html>